package com.uenpay.service;

import com.alibaba.android.arouter.facade.template.IProvider;
import com.uenpay.util.net.listener.HttpOnNextListener;

import java.io.File;

/**
 * Created by liulou on 2017/4/12.
 * desc:
 */

public interface IVersionManager extends IProvider {
    void checkVersion(String params, HttpOnNextListener listener);

    void getFileFromServer(String path, DownloadProgressCallback callback);

    void cancleDownloadApk();

    interface DownloadProgressCallback {

        void onStart(int size);

        void onSuccess(File file);

        void onProgress(int size, int progress);

        void onError(Throwable e);
    }
}
